#include <stdio.h>
#include <conio.h>
#include <math.h>

main(){
	int n,t,tt,vt,max;
	printf("N= "); scanf("%d", &n);
	printf("Nhap vao so thu 1 = "); scanf("%d", &t); max=t;vt=1;
	for(int i=2;i<=n;i++){
		printf("Nhap vao so thu %d: ", i);
		scanf("%d", &tt);
		i+1;
		if(tt>t){
			max=tt;
			vt=i;
		}
	}
	printf("Max = %d, Tai VT = %d", max, vt);
	getch();
}
